<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/9/18
 * Time: 21:28
 */

use yii\helpers\Html;
use yii\widgets\ActiveForm;

?>
<div class="comment-form">

    <?php $form = ActiveForm::begin([
        'action' => ['post/detail', '#' => 'comments', 'id' => $id],
        'method' => 'post',
    ]); ?>
    <div class="row">
        <div class="col-md-12">
            <?= $form->field($postModel, 'content')->textarea(['rows' => 4]) ?>
        </div>
    </div>


    <div class="form-group">
        <?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
    </div>

    <?php ActiveForm::end(); ?>

</div>